﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001369 RID: 4969
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeOffRelicCsReq : IMessage<TakeOffRelicCsReq>, IMessage, IEquatable<TakeOffRelicCsReq>, IDeepCloneable<TakeOffRelicCsReq>, IBufferMessage
	{
		// Token: 0x17003EAD RID: 16045
		// (get) Token: 0x0600DE7E RID: 56958 RVA: 0x0025374C File Offset: 0x0025194C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeOffRelicCsReq> Parser
		{
			get
			{
				return TakeOffRelicCsReq._parser;
			}
		}

		// Token: 0x17003EAE RID: 16046
		// (get) Token: 0x0600DE7F RID: 56959 RVA: 0x00253753 File Offset: 0x00251953
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeOffRelicCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EAF RID: 16047
		// (get) Token: 0x0600DE80 RID: 56960 RVA: 0x00253765 File Offset: 0x00251965
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeOffRelicCsReq.Descriptor;
			}
		}

		// Token: 0x0600DE81 RID: 56961 RVA: 0x0025376C File Offset: 0x0025196C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffRelicCsReq()
		{
		}

		// Token: 0x0600DE82 RID: 56962 RVA: 0x0025377F File Offset: 0x0025197F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffRelicCsReq(TakeOffRelicCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.relicTypeList_ = other.relicTypeList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DE83 RID: 56963 RVA: 0x002537B5 File Offset: 0x002519B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffRelicCsReq Clone()
		{
			return new TakeOffRelicCsReq(this);
		}

		// Token: 0x17003EB0 RID: 16048
		// (get) Token: 0x0600DE84 RID: 56964 RVA: 0x002537BD File Offset: 0x002519BD
		// (set) Token: 0x0600DE85 RID: 56965 RVA: 0x002537C5 File Offset: 0x002519C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17003EB1 RID: 16049
		// (get) Token: 0x0600DE86 RID: 56966 RVA: 0x002537CE File Offset: 0x002519CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> RelicTypeList
		{
			get
			{
				return this.relicTypeList_;
			}
		}

		// Token: 0x0600DE87 RID: 56967 RVA: 0x002537D6 File Offset: 0x002519D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeOffRelicCsReq);
		}

		// Token: 0x0600DE88 RID: 56968 RVA: 0x002537E4 File Offset: 0x002519E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeOffRelicCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.relicTypeList_.Equals(other.relicTypeList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DE89 RID: 56969 RVA: 0x00253834 File Offset: 0x00251A34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			num ^= this.relicTypeList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DE8A RID: 56970 RVA: 0x00253881 File Offset: 0x00251A81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DE8B RID: 56971 RVA: 0x00253889 File Offset: 0x00251A89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DE8C RID: 56972 RVA: 0x00253894 File Offset: 0x00251A94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AvatarId);
			}
			this.relicTypeList_.WriteTo(ref output, TakeOffRelicCsReq._repeated_relicTypeList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DE8D RID: 56973 RVA: 0x002538E4 File Offset: 0x00251AE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			num += this.relicTypeList_.CalculateSize(TakeOffRelicCsReq._repeated_relicTypeList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DE8E RID: 56974 RVA: 0x00253938 File Offset: 0x00251B38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeOffRelicCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this.relicTypeList_.Add(other.relicTypeList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DE8F RID: 56975 RVA: 0x00253985 File Offset: 0x00251B85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DE90 RID: 56976 RVA: 0x00253990 File Offset: 0x00251B90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 88U && num != 90U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.relicTypeList_.AddEntriesFrom(ref input, TakeOffRelicCsReq._repeated_relicTypeList_codec);
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400583C RID: 22588
		private static readonly MessageParser<TakeOffRelicCsReq> _parser = new MessageParser<TakeOffRelicCsReq>(() => new TakeOffRelicCsReq());

		// Token: 0x0400583D RID: 22589
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400583E RID: 22590
		public const int AvatarIdFieldNumber = 1;

		// Token: 0x0400583F RID: 22591
		private uint avatarId_;

		// Token: 0x04005840 RID: 22592
		public const int RelicTypeListFieldNumber = 11;

		// Token: 0x04005841 RID: 22593
		private static readonly FieldCodec<uint> _repeated_relicTypeList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x04005842 RID: 22594
		private readonly RepeatedField<uint> relicTypeList_ = new RepeatedField<uint>();
	}
}
